(function(jq) {
	jq(function() {
		jq(".permissionTree").delegate(".treeItem", "click", function(event) {
			var treeItem = jq(this);
			var valueDisplayName = treeItem.find(".treeItemDisplayName").text();
			var valueId = treeItem.find(".treeItemValueId").text();
			var selectPermissionDiv=treeItem.parents(".selectPermission");
			selectPermissionDiv.find(".displayNameSelect").val(valueDisplayName);
			selectPermissionDiv.find(".valueIdSelect").val(valueId);
			event.preventDefault();
		});
	});
})(jQuery);